/*
 * Filename:    KpiJobCtrlServiceImpl.java
 * Copyright:   2014 中国平安保险（集团）股份有限公司 版权所有
 * Company:     平安科技养老险及健康险系统开发部
 * Create at:   2014-12-16
 */
package com.paic.mhis.hcpms.quota.calculationreport.calculationjob.biz.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.paic.mhis.hcpms.quota.calculationreport.calculationjob.biz.service.KpiJobCtrlService;
import com.paic.mhis.hcpms.quota.calculationreport.calculationjob.dto.HcpmsKpiJobCtrlDTO;
import com.paic.mhis.hcpms.quota.calculationreport.calculationjob.dto.KpiBatchJobLogDTO;
import com.paic.mhis.hcpms.quota.calculationreport.calculationjob.intergration.dao.KpiJobCtrlDao;

@Service("kpiJobCtrlService")
public class KpiJobCtrlServiceImpl implements KpiJobCtrlService {

	@Autowired
	private KpiJobCtrlDao kpiJobCtrlDao;

	@Override
	public HcpmsKpiJobCtrlDTO getHcpmsJobCtrl(HcpmsKpiJobCtrlDTO dto) {
		kpiJobCtrlDao.updateHcpmsJobStart(dto);
		HcpmsKpiJobCtrlDTO result = kpiJobCtrlDao.getHcpmsJobCtrl(dto);
		return result;
	}

	@Override
	public void updateHcpmsJobCtrl(HcpmsKpiJobCtrlDTO dto) {
		kpiJobCtrlDao.updateHcpmsJobCtrl(dto);
	}

	@Override
	public void insertKpiJobLog(KpiBatchJobLogDTO dto) {
		kpiJobCtrlDao.insertKpiJobLog(dto);
	}

}
